package com.mxpio.erp.equipment.service.impl;

import com.mxpio.erp.common.equipment.entity.EquipmentEqpBomRecords;
import com.mxpio.erp.common.equipment.service.EquipmentEqpBomRecordsService;
import com.mxpioframework.jpa.JpaUtil;
import com.mxpioframework.system.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 设备BOM更换记录Service业务层处理
 *
 * @author Cheng
 * @date 2023-07-01
 */
@Service
public class EquipmentEqpBomRecordsServiceImpl extends BaseServiceImpl<EquipmentEqpBomRecords> implements EquipmentEqpBomRecordsService {

    @Override
    public List<EquipmentEqpBomRecords> selectByMainId(String mainId) {
        return JpaUtil.linq(EquipmentEqpBomRecords.class).equal("basicsCode", mainId).list();
    }
}
